<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdvertisementDetail extends Model
{
    protected $table = 'advertisement_detail';

    public static function getAdvertisementDetailList()
    {
        $array = AdvertisementDetail::selectRaw("`id` ,`title`")
            ->pluck('title', 'id')
            ->toArray();
        return $array;
    }
}
